home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / ARMLINUX / MAIL / 9712 / 000033_owner-linux-arm…r.rutgers.edu _Tue Dec 9 16:15:53 1997.msg < prev    next >
Internet Message Format  |  1998-01-04  |  5KB

  1. Return-Path: <owner-linux-arm-outgoing@vger.rutgers.edu>
  2. Received: from nic.funet.fi (nic.funet.fi [128.214.248.6])
  3.     by odie.barnet.ac.uk (8.8.6/8.8.6) with ESMTP id QAA27734
  4.     for <willy@odie.fluff.org>; Tue, 9 Dec 1997 16:15:51 GMT
  5. Received: from vger.rutgers.edu ([128.6.190.2]:50270 "EHLO vger.rutgers.edu" ident: "root") by nic.funet.fi with ESMTP id <4320-25308>; Tue, 9 Dec 1997 17:28:42 +0200
  6. Received: by vger.rutgers.edu id <971096-215>; Tue, 9 Dec 1997 09:50:35 -0500
  7. Received: from mail.tin.it ([194.243.154.39]:41499 "EHLO fes3.cs.tin.it" ident: "NO-IDENT-SERVICE") by vger.rutgers.edu with ESMTP id <971159-219>; Tue, 9 Dec 1997 09:41:22 -0500
  8. Received: from riscpc (root@Monza7-138.tin.it [195.103.249.137])
  9.           by fes3.cs.tin.it (8.8.4/8.8.4) with SMTP
  10.       id OAA26665; Tue, 9 Dec 1997 14:19:48 +0100 (MET)
  11. Date:     Mon, 08 Dec 1997 19:46:43 +0100
  12. From: Sergio Monesi <msergio@tin.it>
  13. To: Phil Norman <P.C.F.Norman@exeter.ac.uk>
  14. Cc: linux-arm@vger.rutgers.edu
  15. Subject: Re: EADFS and Linux, a temporary solution...
  16. Message-ID: <b3a362f547%msergio@msergio.tin.it>
  17. In-Reply-To: <Pine.SGI.3.91.971208100111.18166B-100000@hebe>
  18. Organization: None, AFAIK...
  19. X-Mailer: Messenger v1.02 for RISC OS
  20. X-Posting-Agent: RISC OS Newsbase 0.59f
  21. X-Orcpt: rfc822;linux-arm@vger.rutgers.edu
  22. Sender: owner-linux-arm@vger.rutgers.edu
  23. Precedence: bulk
  24. Status: RO
  25.  
  26. In message <Pine.SGI.3.91.971208100111.18166B-100000@hebe>
  27.           Phil Norman <P.C.F.Norman@exeter.ac.uk> wrote:
  28.  
  29. > > I am now trying to set up a DOS partition in order to swap files easily
  30. > > between Linux and RISC OS. How do I configure the Linux partition table?
  31. > > There is no 'fdisk' in my installation (admittely I haven't installed all
  32. > > the RPMs nor I have the very latest versions) but the version supplied
  33. > > with the RedHat installer disc doesn't seem to be able to write to the
  34. > > disc. !PartMan can only create Linux native/swap partitions AFAIK.
  35. > You don't need a DOS partition to swap files between linux and RiscOS.  
  36. > Linux can mount (read-only) ADFS partitions, and ExeterFS (available from 
  37. > my web site, URL in the sig) is a RiscOS program which can read linux 
  38. > ext2fs partitions.  Unfortunately, this currently means that you have to 
  39. > boot into the OS you want to copy things into, but it means you don't 
  40. > have to resort to smelly DOS ;-)
  41.  
  42. I have ExeterFS but I never actually tried it. My main concern is that I
  43. cannot generally access the Linux partition because while I am working with
  44. RISC OS I am using the EADFS bootblock while from Linux I cannot access all
  45. the ADFS partitions (for the same reason). Instead, the DOS partition is
  46. shared between the two OSes so I can transfer the files easily (eg. using a
  47. parallel port Zip file that I can only access from Linux) or simply store
  48. them there avoiding to waste twice the space.
  49.  
  50. > > I'm ready to hack the partition table manually but I don't know the
  51. > > 'magic number' that marks a DOS partition (Linux swap seems to be
  52. > > 0xDEAFAB1E and Linux native 0xDEAFA1DE), can anybody help me? Is there a
  53. > > checksum in the partition table?
  54. > Yep, those magic numbers are correct.  AFAICR, the partition table is 
  55. > stored as an array of 3-word-long entries, each with the following format:
  56. > +0    partition magic number (as you mentioned above)
  57. > +4    offset from first sector of partition table to first sector of partition
  58. > +8    length, in sectors, of partition
  59. > ....and if the 'magic number' is zero, that means there are no more 
  60. > partitions.  
  61.  
  62. Yes, a quick look at the ExeterFS sources has been very useful for me to
  63. understand that :-)
  64.  
  65. Now, even if I still don't know the magic number of a DOS partition, I fixed
  66. my problem: I created another Linux Native partition (using PartMan) that
  67. points to the DOS partition (not at the beginning of it, though, because it
  68. seems to contain a DOS partition table or something like that), then Linux
  69. recognises it during the boot and I can mount it using 'mount -t msdos
  70. /dev/hda7 /dosswap' (or writing a line in /etc/fstab).
  71.  
  72. > Linux can tell the difference between partition tables  created by PartMan
  73. > and those created by DOS (if it sees a partition  table, when it prints the
  74. > info on each drive it can see it prints a [DOS]  or [Linux] depending on
  75. > which partition type it is).  
  76.  
  77. It also seems to print [RISCiX] if it finds a *RiscBSD* partition table (on
  78. my other disc)! Unfortunately it doesn't seem to recognise it, I could share
  79. the swap space between the two OSes...
  80.  
  81. > Actually, here I  have a few questions of my own.
  82. > 1: Is the [Linux] partition table one which is generic to all versions of 
  83. > Linux, or is it one invented by RK?
  84.  
  85. I tried to use the Linux 'fdisk' on a PC (any idea about why it is missing
  86. from the ARMLinux distribution?) in order to understand the DOS magic number
  87. but it seemed to be completely different from the ARMLinux one... probably
  88. because it was actually a DOS partition table, though...
  89.  
  90. Cheers,
  91. Sergio
  92.  
  93. -- 
  94. Sergio Monesi...         \ . . . \  Cracking RC5-64 with a StrongARM RiscPC
  95. mailto:msergio@tin.it     \ . . . \  http://rc5.distributed.net/
  96. http://bounce.to/sergio/   \ . . . \  Join the Wild Wereboar Team (#1308)!
  97.  
  98. unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu